//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['Elton Rohn','The Red Room at Dow Event Center','Saginaw, MI','Friday','5/17/2024','7:00 PM','6155098','Elton-Rohn-5-17-2024'],['Memorial Cup: Saginaw Spirit vs. WHL Champion','Dow Arena At Dow Event Center','Saginaw, MI','Friday','5/24/2024','TBD','6219804','Memorial-Cup--Saginaw-Spirit-vs--WHL-Champion-5-24-2024'],['Memorial Cup: OHL Champion vs. QMJHL Champion','Dow Arena At Dow Event Center','Saginaw, MI','Saturday','5/25/2024','TBD','6219806','Memorial-Cup--OHL-Champion-vs--QMJHL-Champion-5-25-2024'],['Memorial Cup: Saginaw Spirit vs. QMJHL Champion','Dow Arena At Dow Event Center','Saginaw, MI','Sunday','5/26/2024','TBD','6219807','Memorial-Cup--Saginaw-Spirit-vs--QMJHL-Champion-5-26-2024'],['Memorial Cup: W+OHL Champion vs. WHL Champion','Dow Arena At Dow Event Center','Saginaw, MI','Monday','5/27/2024','7:30 PM','6219808','Memorial-Cup--W-OHL-Champion-vs--WHL-Champion-5-27-2024'],['Memorial Cup: WHL Champion vs. QMJHL Champion','Dow Arena At Dow Event Center','Saginaw, MI','Tuesday','5/28/2024','TBD','6219809','Memorial-Cup--WHL-Champion-vs--QMJHL-Champion-5-28-2024'],['Memorial Cup: Saginaw Spirit vs. OHL Champion','Dow Arena At Dow Event Center','Saginaw, MI','Wednesday','5/29/2024','7:30 PM','6219810','Memorial-Cup--Saginaw-Spirit-vs--OHL-Champion-5-29-2024'],['Memorial Cup: Semifinals','Dow Arena At Dow Event Center','Saginaw, MI','Friday','5/31/2024','TBD','6219811','Memorial-Cup--Semifinals-5-31-2024'],['Walker Hayes','Jolt Credit Union Event Park at The Dow Event Center','Saginaw, MI','Saturday','6/1/2024','7:00 PM','6327781','Walker-Hayes-6-1-2024'],['Memorial Cup: Championship Final','Dow Arena At Dow Event Center','Saginaw, MI','Sunday','6/2/2024','7:30 PM','6219812','Memorial-Cup--Championship-Final-6-2-2024'],['Aaron Lewis','Heritage Theatre At Dow Event Center','Saginaw, MI','Saturday','8/10/2024','7:00 PM','5432378','Aaron-Lewis-8-10-2024'],['Brad Williams','Heritage Theatre At Dow Event Center','Saginaw, MI','Thursday','8/22/2024','7:00 PM','6165862','Brad-Williams-8-22-2024'],['Oliver Anthony','Dow Arena At Dow Event Center','Saginaw, MI','Saturday','8/24/2024','7:30 PM','6084137','Oliver-Anthony-8-24-2024'],['Lee Brice','Dow Arena At Dow Event Center','Saginaw, MI','Thursday','9/19/2024','7:30 PM','6379470','Lee-Brice-9-19-2024'],['MercyMe','Dow Arena At Dow Event Center','Saginaw, MI','Thursday','10/3/2024','7:00 PM','6338457','MercyMe-10-3-2024']],'Dow Event Center','http://www.ticketnetwork.com/ticket/Dow-Event-Center-events.aspx');